package com.ag.hmk.action;

import java.util.List;
import com.ag.bean.TbType;
import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.WukuTypeServImpl;

/**
 * 获取五库的类别的Action
 * @author 黄木看
 */
public class GetWukuTypeAction extends BaseAction {
	private static final long serialVersionUID = 4163328668157531507L;
	private WukuTypeServImpl wukuTypeServImpl;
	
	private List<TbType> typeList;
	/*
	 *  获取五库类别（所有）
	 */
	public String getWukuType()throws Exception{
		List<TbType> list = null;
		try {
			list = wukuTypeServImpl.getAllTbtype();
		} catch (Exception e) {
			e.printStackTrace();
			list = null;
			
		}
		this.setTypeList(list);
		return "getwukuTypeOK";
	}

	public void setWukuTypeServImpl(WukuTypeServImpl wukuTypeServImpl) {
		this.wukuTypeServImpl = wukuTypeServImpl;
	}

	public List<TbType> getTypeList() {
		return typeList;
	}

	public void setTypeList(List<TbType> typeList) {
		this.typeList = typeList;
	}

	

	

}
